<?php
	$list=array(	array(
						  'Visual Enlightenment for the Web',
						  'The Zen of CSS Design',
						  'Mr.A',
						  'February 30, 2005',
						  'M',
						  'index.php?page=handin'
						  ),
					array(
						  'jQuery从入门到精通',
						  'javascript',
						  'Mr.B',
						  'February 30, 2005',
						  'D',
						  '#'
						  ),
					array(
						  'User Agent Conformance ',
						  'XHTML',
						  'Mr.C',
						  'February 30, 2005',
						  'P',
						  '#'
						  ),
					array(
						  'Visual Enlightenment for the Web',
						  'The Zen of CSS Design',
						  'Mr.A',
						  'February 30, 2005',
						  'M',
						  'index.php?page=handin'
						  ),
					array(
						  'jQuery从入门到精通',
						  'javascript',
						  'Mr.B',
						  'February 30, 2005',
						  'D',
						  '#'
						  ),
					array(
						  'User Agent Conformance ',
						  'XHTML',
						  'Mr.C',
						  'February 30, 2005',
						  'R',
						  '#'
						  ),
					array(
						  'Visual Enlightenment for the Web',
						  'The Zen of CSS Design',
						  'Mr.A',
						  'February 30, 2005',
						  'M',
						  'index.php?page=handin'
						  )
				);
	$list1=array(	array(
						  'Visual Enlightenment for the Web',
						  'The Zen of CSS Design',
						  'Mr.A',
						  'February 30, 2005',
						  'M',
						  'index.php?page=handin'
						  ),
					array(
						  'jQuery从入门到精通',
						  'javascript',
						  'Mr.B',
						  'February 30, 2005',
						  'D',
						  '#'
						  )
				);
	$list2=array(	array(
						  'Visual Enlightenment for the Web',
						  'The Zen of CSS Design',
						  'Mr.A',
						  'February 30, 2005',
						  'M',
						  'index.php?page=handin'
						  ),
					array(
						  'jQuery从入门到精通',
						  'The Zen of CSS Design',
						  'Mr.B',
						  'February 30, 2005',
						  'D',
						  '#'
						  ),
					array(
						  'Visual Enlightenment for the Web',
						  'The Zen of CSS Design',
						  'Mr.A',
						  'February 30, 2005',
						  'M',
						  'index.php?page=handin'
						  ),
					array(
						  'jQuery从入门到精通',
						  'The Zen of CSS Design',
						  'Mr.B',
						  'February 30, 2005',
						  'D',
						  '#'
						  )
				)
	?>
	
    <!--start activate-wrap-->
    <div class="list activate-wrap">
    			<table cellpadding="1" class="sortTable" id="sortTable">
				<thead>
				<tr>
					<th><p>课业名称</p></th>
					<th><p>所属课程</p></th>
					<th><p>提交状况</p></th>
                    <th><p>更新数量</p></th>
				</tr>
			</thead>
   
			<tbody> 
		<?php 
			if(isset($_GET['year'])&&$_GET['year']=='2007'){
				$k=$list1;
			}elseif(isset($_GET['class'])&&$_GET['class']=='java'){
				$k=$list2;	
			}else{
				$k=$list;	
			}
			for($i=0;$i<count($k);$i++){
				?>
                <tr class="toggle">
               		<td><a class="type" href="index.php?select=lookdoing"><?php echo $k[$i][0]; ?></a></td>
                    <td><?php echo $k[$i][1]; ?></td>
                    <td><?php echo $k[$i][2]; ?></td>
                    <td><?php echo $k[$i][3]; ?></td>
                </tr>			
          <?php
			}
			?>
			</tbody>
		</table>

    </div>
    <!--end activate-wrap-->
    <script>
	$('ul.selectNav li').eq(0).addClass('current');
	</script>